package org.test.service;

import org.lojzes.springframework.dao.MyPreDao;
import org.lojzes.springframework.model.Student;

public class Service01 {
	private MyPreDao myPreDao;

	public void setMyPreDao(MyPreDao myPreDao) {
		this.myPreDao = myPreDao;
	}

	public void add() {
		myPreDao.add();
	}
	public Student getStudentById(Integer id){
		return myPreDao.getStudentById(id);
	}
	public String getStudentNameById(Integer id){
		return myPreDao.getStudentNameById(id);
	}
}
